package com.zzg.demo.controller;

import com.zzg.demo.laboratory.jasypt.JasyptService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {
    @Resource
    private JasyptService jasyptService;
    
    @GetMapping("/get")
    public String test(){
        return "test";
    }

    @GetMapping("/testJasypt")
    public String testJasypt(@RequestParam("str") String str, @RequestParam("type") String type) {
        return jasyptService.testJasypt(str, type);
    }
}
